const sequelize = require("./db");
const {
    DataTypes
} = require('sequelize');

// 标题，发布时间，摘要，具体内容，标签，背景地址
const User = sequelize.define('user', {
    photo: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    username: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    password: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    // admin_state: {
    //     type: DataTypes.STRING,
    //     // allowNull: false,
    // }
}, {
    createdAt: false,
    updatedAt: false,
    paranoid: true,
});


module.exports = User;